import request from '@/utils/request'
// 获取聊天列表
export const getList = (data: any) => {
  return request({
    url: '/scrm-api/console/tag/chat/list',
    method: 'POST',
    data
  })
}
//创建规则
export const createList = (data: any) => {
  return request({
    url: '/scrm-api/console/tag/chat/create',
    method: 'POST',
    data
  })
}
// 改变状态
export const changeStatus = (data: any) => {
  return request({
    url: '/scrm-api/console/tag/chat/status',
    method: 'get',
    params: data
  })
}
// 删除
export const delList = (data: any) => {
  return request({
    url: 'scrm-api/console/tag/chat/del',
    method: 'get',
    params: data
  })
}
// 客户明细详情
export const detailList = (data: any) => {
  return request({
    url: 'scrm-api/console/tag/chat/detaile',
    method: 'post',
    data
  })
}
//获取编辑数据
export const getDetail = (data: any) => {
  return request({
    url: 'scrm-api/console/tag/chat/info',
    method: 'get',
    params: data
  })
}
// 编辑
export const edit = (data: any) => {
  return request({
    url: 'scrm-api/console/tag/chat/update',
    method: 'post',
    data
  })
}
